<?php

require_once("database.inc.php");
require_once("track.inc.php");

quickhit();
hit();

die("253Please update your Foxtrick to 0.3.25!");

$dbh = connect_db("dbm");

$last_update = "2006-01-13";
$id = 0;
if (is_numeric($_GET['id'])) { $id = $_GET['id']; }
else {die ("0not found"); }

$countrynames = array();

$query = mysql_query("SELECT leagueid, leaguename from leagues", $dbh);

while ($row = mysql_fetch_array($query)) {
	$countrynames[$row['leagueid']] = $row['leaguename'];
}

$query = mysql_query("SELECT leagueid from `teams_$last_update` where userid = $id", $dbh);

while ($row = mysql_fetch_array($query)) {
	echo "{$row['leagueid']}{$countrynames[$row['leagueid']]}\n";
}

?>
